<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>RAC</title>

    <!-- Bootstrap Core CSS -->
    <link href="/xnqb/Public/Rac/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/xnqb/Public/Rac/vendor/metisMenu/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/xnqb/Public/Rac/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Morris Charts CSS -->
    <link href="/xnqb/Public/Rac/vendor/morrisjs/morris.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/xnqb/Public/Rac/vendor/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
		 <link href="/xnqb/Public/Rac/css/bootstrap-datetimepicker.min.css" rel="stylesheet" type="text/css">
	<!-- DataTables CSS -->
    <!-- <link href="/xnqb/Public/Rac/vendor/datatables-plugins/dataTables.bootstrap.css" rel="stylesheet"> -->

    <!-- DataTables Responsive CSS -->
    <!-- <link href="/xnqb/Public/Rac/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet"> -->
    
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    	<style>
	th{
		text-align:center;
	}
	
	.error {
	color:red
}
.parsley-error {
	border-color:#f32f53
}
.parsley-errors-list {
	display:none;
	margin:0;
	padding:0
}
.parsley-errors-list.filled {
	display:block
}
.parsley-errors-list>li {
	font-size:12px;
	list-style:none;
	color:#f32f53;
	margin-top:5px
}
	</style>
	
	
	<style>
      	.search_title_span{
      		display: inline-block;
      		
      		text-align: right;
      	}
      	.search_input{
      		display: inline-block;
      		width: 50%;
      	}
      	.col-sm-3{
      		margin-top: 10px;
      	}
      </style>
	
	<style>
	th{
		text-align:center;
	}
	</style>
</head>

<body>

    <div id="wrapper">

        <!-- Navigation -->
        <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.html"><?php echo (L("_rac_")); ?></a>
            </div>
            <!-- /.navbar-header -->

            <ul class="nav navbar-top-links navbar-right">



                <!-- <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                        <i class="fa fa-bell fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-alerts">
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-comment fa-fw"></i> New Comment
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-twitter fa-fw"></i> 3 New Followers
                                    <span class="pull-right text-muted small">12 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-envelope fa-fw"></i> Message Sent
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-tasks fa-fw"></i> New Task
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a href="#">
                                <div>
                                    <i class="fa fa-upload fa-fw"></i> Server Rebooted
                                    <span class="pull-right text-muted small">4 minutes ago</span>
                                </div>
                            </a>
                        </li>
                        <li class="divider"></li>
                        <li>
                            <a class="text-center" href="#">
                                <strong>See All Alerts</strong>
                                <i class="fa fa-angle-right"></i>
                            </a>
                        </li>
                    </ul>
                </li> -->
                
                <!-- /.dropdown -->

                <li><a href="?l=zh-cn">中文</a></li>
                <li>|</li>
                <li><a href="?l=en-us">English</a></li>
                <li class="dropdown">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
                    	&nbsp;admin&nbsp;
                        <i class="fa fa-user fa-fw"></i> <i class="fa fa-caret-down"></i>
                    </a>
                    <ul class="dropdown-menu dropdown-user">
                        <!-- <li><a href="#"><i class="fa fa-user fa-fw"></i> User Profile</a>
                        </li>
                        <li><a href="#"><i class="fa fa-gear fa-fw"></i> </a>
                        </li> -->
                        <li class="divider"></li>
                        <li><a href="<?php echo U('Login/logout');?>"><i class="fa fa-sign-out fa-fw"></i> <?php echo (L("_logout_")); ?></a>
                        </li>
                    </ul>
                    <!-- /.dropdown-user -->
                </li>
                <!-- /.dropdown -->
            </ul>
            <!-- /.navbar-top-links -->
            

            <div class="navbar-default sidebar" role="navigation">
            
            	
                <div class="sidebar-nav navbar-collapse">
                    <ul class="nav" id="side-menu">
                        <?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li>
                        	<!-- <?php if($vo["nav_state"] == 'open'): echo ($vo["nav_url"]); else: ?>#<?php endif; ?> -->
                            	<a href='/xnqb/<?php if($vo["nav_state"] == 'open'): echo ($vo["nav_url"]); else: ?>#<?php endif; ?>'><i class="fa <?php echo ($vo["nav_icon"]); ?> fa-fw"></i> <?php echo ($vo["lang"]); ?></a>
                       	    
                        	
	                        	<?php if(!empty($vo["child"])): ?><ul class="nav nav-second-level">
	                        			<?php if(is_array($vo["child"])): $i = 0; $__LIST__ = $vo["child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><li>
			                                    <a href="/xnqb/<?php echo ($v["nav_url"]); ?>"><?php echo ($v["lang"]); ?></a>
			                                </li><?php endforeach; endif; else: echo "" ;endif; ?>
	
		                            </ul><?php endif; ?>
                        	
                        	</li><?php endforeach; endif; else: echo "" ;endif; ?>
                        
                        
                        
                    </ul>
                </div>
                <!-- /.sidebar-collapse -->
            </div>
            <!-- /.navbar-static-side -->
        </nav>

        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <h1 class="page-header"><?php echo ($member["account"]); ?> - <?php echo (L("_member_amend_")); ?></h1>
                </div>
                <!-- /.col-lg-12 -->
            </div>

            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                        	<?php echo (L("_member_amend_")); ?>
                        	<!-- <a href="<?php echo U('Admin/add');?>" type="button" class="btn btn-sm btn-outline btn-primary">添加管理员</a> -->
                        </div>
                        
                        
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                        	<form id="update_form1">
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_username_")); ?><span style="color:red"> *</span></label>
                                       <div>
                                       	   <input name="id" type="hidden" value="<?php echo ($member["id"]); ?>"/>
                                           <input name="account" disabled="disabled" value="<?php echo ($member["account"]); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_real_name_")); ?><span style="color:red"> *</span></label>
                                       <div>
                                           <input name="real_name" 
                                           
                                           value="<?php echo ($member["real_name"]); ?>" type="text" class="form-control" 
                                           required="" data-parsley-minlength="2" 
                                           data-parsley-minlength-message="<?php echo (L("_reg_realname_minlength_")); ?>" 
                                           data-parsley-maxlength="20" 
                                           data-parsley-maxlength-message="<?php echo (L("_reg_realname_maxlength_")); ?>" 
                                           data-parsley-required-message="<?php echo (L("_reg_real_name_")); ?> <?php echo (L("_required_")); ?>"
                                            placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_reg_real_name_")); ?>"
                                           >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>

  
							</div>
							
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_mobile_")); ?><span style="color:red"> *</span></label>
                                       <div>
                                           <input name="mobile"  value="<?php echo ($member["mobile"]); ?>" required="" placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_reg_mobile_")); ?>" data-parsley-required-message="<?php echo (L("_reg_mobile_")); ?> <?php echo (L("_required_")); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_email_")); ?><span style="color:red"> *</span></label>
                                       <div>
                                           <input name="email"  value="<?php echo ($member["email"]); ?>"  required="" placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_email_")); ?>"  data-parsley-required-message="<?php echo (L("_email_")); ?> <?php echo (L("_required_")); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>

  
							</div>
							
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_id_passport_")); ?></label>
                                       <div>
                                           <input name="passport" value="<?php echo ($member["passport"]); ?>"  placeholder="<?php echo (L("_reg_input_placeholder_")); ?> <?php echo (L("_reg_id_passport_")); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_birthday_")); ?></label>
                                       <div>
                                           <input name="birthday"  value="<?php echo ($member["birthday"]); ?>" placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_reg_birthday_")); ?>" type="text" class="form-control form_datetime" >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>
							</div>
							
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_address_")); ?>1</label>
                                       <div>
                                           <input name="address1" value="<?php echo ($member["address1"]); ?>" placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_reg_address_")); ?>1" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_address_")); ?>2</label>
                                       <div>
                                           <input name="address2" value="<?php echo ($member["address2"]); ?>" placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_reg_address_")); ?>2" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>
							</div>
							
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_country_")); ?></label>
                                       <div>
                                           <select name="country" class="form-control" >
                                           		<?php if(is_array($all_country)): foreach($all_country as $k=>$vo): ?><option  value="<?php echo ($k); ?>" <?php if($k == $member['country']): ?>selected="selected"<?php endif; ?> >
                                        				<?php echo ($vo); ?>
                                        			</option><?php endforeach; endif; ?>
                                           </select>
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_postal_number_")); ?></label>
                                       <div>
                                           <input name="postal_number" value="<?php echo ($member["postal_number"]); ?>" type="text" placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_reg_postal_number_")); ?>" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>
							</div>
							
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_city_")); ?></label>
                                       <div>
                                           <input name="city" value="<?php echo ($member["city"]); ?>"  placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_reg_city_")); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_reg_state_province_")); ?></label>
                                       <div>
                                           <input name="province" value="<?php echo ($member["province"]); ?>"  placeholder="<?php echo (L("_reg_input_placeholder_")); echo (L("_reg_state_province_")); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>
							</div>
                            <div class="row">
                            	<div class="col-sm-4">
                           			<div class="form-group">
                                     	<button type="submit" class="btn btn-primary"><?php echo (L("_submit_")); ?></button>
                                     	<button type="reset" class="btn btn-default"><?php echo (L("_reset_")); ?></button>
                                     	<a href="javascript:history.back(-1)" type="button" class="btn btn-default"><?php echo (L("_return_")); ?></a>
                                     </div>
	                             </div>
                            </div>
									
							</form>		
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-6 -->
                <!-- /.col-lg-6 -->
            </div>
            
            
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                        	<?php echo (L("_bank_info_amend_")); ?>
                        	<!-- <a href="<?php echo U('Admin/add');?>" type="button" class="btn btn-sm btn-outline btn-primary">添加管理员</a> -->
                        </div>
                        
                        
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                        	<form id="update_form2">
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_bank_location_")); ?><span style="color:red"> *</span></label>
                                       <div>
                                       	   <input name="member_id" type="hidden" value="<?php echo ($member["id"]); ?>"/>
                                           <select disabled="disabled" name="country" class="form-control" >
                                           		<?php if(is_array($all_country)): foreach($all_country as $k=>$vo): ?><option  value="<?php echo ($k); ?>" <?php if($k == $member['country']): ?>selected="selected"<?php endif; ?> >
                                        				<?php echo ($vo); ?>
                                        			</option><?php endforeach; endif; ?>
                                           </select>
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_account_name_")); ?><span style="color:red"> *</span></label>
                                       <div>
                                           <input name="real_name" disabled="disabled" value="<?php echo ($member["real_name"]); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>

  
							</div>
							
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_bank_name_")); ?><span style="color:red"> *</span></label>
                                       <div>
                                           <input name="bank_name"  value="<?php echo ($bank["bank_name"]); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_bank_branch_name_address_")); ?><span style="color:red"> *</span></label>
                                       <div>
                                           <input name="branch_bank"  value="<?php echo ($bank["branch_bank"]); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>

  
							</div>
							
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_account_number_")); ?></label>
                                       <div>
                                           <input name="bank_num" value="<?php echo ($bank["bank_num"]); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                
                                
                                <div class="col-sm-4"></div>
							</div>
							
							<div class="row">
								<div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_bank_sort_code_")); ?></label>
                                       <div>
                                           <input name="bank_sort_num" value="<?php echo ($bank["bank_sort_num"]); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                
                                <div class="col-sm-4">
                                   <div class="form-group ">
                                       <label><?php echo (L("_the_bank_IBAN_code_")); ?></label>
                                       <div>
                                           <input name="bank_iban_num" value="<?php echo ($bank["bank_iban_num"]); ?>" type="text" class="form-control" >
                                       </div>
                                   </div>
                                </div>
                                <div class="col-sm-4"></div>
							</div>
							<div class="row">
                            	<div class="col-sm-4">
                           			<div class="form-group">
                                     	<button type="submit" class="btn btn-primary"><?php echo (L("_submit_")); ?></button>
                                     	<button type="reset" class="btn btn-default"><?php echo (L("_reset_")); ?></button>
                                     	<a href="javascript:history.back(-1)" type="button" class="btn btn-default"><?php echo (L("_return_")); ?></a>
                                     </div>
	                             </div>
                            </div>
							
									
							</form>		
                            <!-- /.table-responsive -->
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-6 -->
                <!-- /.col-lg-6 -->
            </div>
        </div>
        <!-- /#page-wrapper -->

    </div>
    <!-- /#wrapper -->
	
	<!-- <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
                                Launch Demo Modal
     </button> -->
     
     <!-- Modal -->
     <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
         <div class="modal-dialog">
             <div class="modal-content">
                 <div class="modal-header">
                     <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                     <h4 class="modal-title" id="myModalLabel">充值</h4>
                 </div>
                 <div class="modal-body">
                 	
                      <form id="add_form" role="form">
                      	<div class="row">
                      		<div class="col-lg-2">
                      		</div>  
							<div class="col-lg-8">
	                    		<div class="form-group">
	                                 <label>用户名</label>
	                                 <input type="text" id="temp_account" class="form-control" disabled="disabled" >
	                             </div>
	                             
	                             <div class="form-group">
	                                 <label>注册积分</label>
	                                 <input name="cash_integral_num"  placeholder="请输入金额" type="number" class="form-control" >
	                             </div>
	                        </div>   
	                    </div>
	                 </form>
	                   	
                 </div>
                 <div class="modal-footer">
                     <button type="button"  class="btn btn-default" data-dismiss="modal">取消</button>
                     <button type="button" id="member_recharge_button" class="btn btn-primary">确定</button>
                 </div>
             </div>
             <!-- /.modal-content -->
         </div>
         <!-- /.modal-dialog -->
     </div>
	
    <!-- jQuery -->
    <script src="/xnqb/Public/Rac/vendor/jquery/jquery.min.js"></script>

    <!-- Bootstrap Core JavaScript -->
    <script src="/xnqb/Public/Rac/vendor/bootstrap/js/bootstrap.min.js"></script>

    <!-- Metis Menu Plugin JavaScript -->
    <script src="/xnqb/Public/Rac/vendor/metisMenu/metisMenu.min.js"></script>

    <!-- Morris Charts JavaScript -->
    <script src="/xnqb/Public/Rac/vendor/raphael/raphael.min.js"></script>
    <!-- <script src="/xnqb/Public/Rac/vendor/morrisjs/morris.min.js"></script>
    <script src="/xnqb/Public/Rac/data/morris-data.js"></script> -->

    <!-- Custom Theme JavaScript -->
    <script src="/xnqb/Public/Rac/dist/js/sb-admin-2.js"></script>
    
    <script src="/xnqb/Public/Rac/layer/layer.js"></script>
   
    <script src="/xnqb/Public/Rac/js/bootstrap-datetimepicker.min.js"></script>
    <!-- <script src="/xnqb/Public/Rac/vendor/datatables/js/jquery.dataTables.min.js"></script>
    <script src="/xnqb/Public/Rac/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="/xnqb/Public/Rac/vendor/datatables-responsive/dataTables.responsive.js"></script> -->
    <script type="text/javascript" src="/xnqb/Public/Rac/js/parsleyjs/parsley.min.js"></script>
	<script type="text/javascript">
		$(function () {
			$(function () {
		    	$(".form_datetime").datetimepicker({
		    		format: 'yyyy-mm-dd', autoclose:true,
		    		minView : 2,
		    		initialDate : new Date()
		    	});
		    });
			
			$('#update_form1').parsley().on('form:submit', function() {
	        	var obj = $('#update_form1').serialize();
	        	var layer_index = null;
	           	$.ajax({
	           	    type: "POST",
	           	    url: "<?php echo U('Member/update');?>",
	           	    data: obj,// 要提交的表单
	           	    dataType: 'json',
	           	    beforeSend: function(){
	   					layer_index = layer.load(1, {
	   					  	shade: [0.1, '#ccc'] //0.1透明度的白色背景
	   					});
	   				},
	           	    success: function (data, response) {
	           	    	layer.close(layer_index);
	           	    	if (data.flag > 0) {
	           	    		layer.msg(data.msg);
	           	    		//location.href = "<?php echo U('Matcher/index');?>";
	           	    		setTimeout(function(){
	           	    			location.href = document.referrer;
	           	    		}, 1000);
	           	    		
	           	    	} else {
	           	    		layer.msg(data.msg);
	           	    	}
	           	    },
	           	    error: function (error) {
	           	    	layer.close(layer_index);
	           	    	layer.msg('error');
	           	    }
	           	  });
	        	  
	        	 return false;
	        });
			
			$('#update_form2').parsley().on('form:submit', function() {
	        	var obj = $('#update_form2').serialize();
	        	var layer_index = null;
	           	$.ajax({
	           	    type: "POST",
	           	    url: "<?php echo U('Member/update2');?>",
	           	    data: obj,// 要提交的表单
	           	    dataType: 'json',
	           	    beforeSend: function(){
	   					layer_index = layer.load(1, {
	   					  	shade: [0.1, '#ccc'] //0.1透明度的白色背景
	   					});
	   				},
	           	    success: function (data, response) {
	           	    	layer.close(layer_index);
	           	    	if (data.flag > 0) {
	           	    		layer.msg(data.msg);
	           	    		//location.href = "<?php echo U('Matcher/index');?>";
	           	    		setTimeout(function(){
	           	    			location.href = document.referrer;
	           	    		}, 1000);
	           	    		
	           	    	} else {
	           	    		layer.msg(data.msg);
	           	    	}
	           	    },
	           	    error: function (error) {
	           	    	layer.close(layer_index);
	           	    	layer.msg('error');
	           	    }
	           	  });
	        	  
	        	 return false;
	        });

			
			
		});
	</script>
</body>

</html>